import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/table/list',
    method: 'get',
    params
  })
}
export function createArea(params){
  return request({
    url: '/table/insertArea',
    method: 'post',
    data:params
  })
}
export function deleteArea(params){
  return request({
    url: '/table/deleteArea',
    method: 'post',
    data: params
  })
}
export function createTable(params){
  return request({
    url: '/table/createTable',
    method: 'post',
    data: params
  })
}
export function getTables(params){
  return request({
    url: '/table/tableListByArea',
    method: 'get',
    params
  })
}
export function deleteTableById(params){
  return request({
    url: '/table/deleteById',
    method: 'post',
    data:params
  })
}